From 91b52201b5088eeb0fe96230e070741e4834ea18 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Tue, 25 Aug 2015 12:58:02 -0400 Subject: [PATCH] Make note about small divergance from SemVer Fixes #1898 --- src/doc/crates-io.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/doc/crates-io.md b/src/doc/crates-io.md index 04d890b4b..4a8f5c433 100644 --- a/src/doc/crates-io.md +++ b/src/doc/crates-io.md @@ -90,6 +90,15 @@ Here are some examples of wildcard requirements: Multiple version requirements can also be separated with a comma, e.g. `>= 1.2, < 1.5`. +# Pre-1.0 versions + +While SemVer says that there is no compatibility before 1.0.0, many programmers +treat a `0.x.y` release in the same way as a `1.x.y` release: that is, `y` is +incremented for bugfixes, and `x` is incremented for new features. + +As such, Cargo considers a `0.x.y` and `0.x.z` version, where `z > y`, to be +compatible. + # Publishing crates Ok, now that we've got a crate which is using dependencies from crates.io, -- 2.30.2